package com.socene.kotlin.config

import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.context.annotation.Configuration
import org.springframework.data.jpa.repository.config.EnableJpaRepositories
import org.springframework.transaction.annotation.EnableTransactionManagement


/* *
 *Created by: Sorata 2017/11/9 0009 上午 9:55
 *
 */
@Configuration
@EnableJpaRepositories(basePackages = arrayOf("com.socene.kotlin.dao")) //repository包
@EntityScan(basePackages = arrayOf("com.socene.kotlin.entity"))//实体包
@EnableTransactionManagement
class JpaConfig